import Home from '../views/home/Home.vue'
//用户管理
import UserList from '@/views/user-manage/UserList.vue'
//权限管理
import RightList from '@/views/right-manage/RightList.vue'
import RoleList from '@/views/right-manage/RoleList.vue'
//实验室管理
import LabList from '@/views/lab-manage/LabList.vue'
import AddLab from '@/views/lab-manage/AddLab.vue'
//预约管理
import AuditList from '@/views/book-manage/AuditList.vue'
import BookList from '@/views/book-manage/BookList.vue'
import AddBook from '@/views/book-manage/AddBook.vue'

//数组形式便于检查权限
const routes = [
    {
        path:"/index",
        component:Home
    },
    {
        path:"/user-manage/list",
        component:UserList
    },
    {
        path:"/right-manage/rolelist",
        component:RoleList
    },
    {
        path:"/right-manage/rightlist",
        component:RightList
    },
    {   //实验室列表
        path:"/lab-manage/lablist",
        component:LabList
    },
    {   //实验室添加
        path:"/lab-manage/addlab",
        component:AddLab
    },
    {   //审核列表
        path:"/book-manage/auditlist",
        component:AuditList
    },
    {
        path:"/book-manage/booklist",
        component:BookList
    },
    {
        path:"/book-manage/addbook",
        component:AddBook
    },
]
//导出数组
export default routes;